Skip to content

Make spatial grids entities - #248

Merged
catilac merged 1 commit into
compute-perffrom
grid-entities
Oct 5, 2026
Merged

catilac merged 1 commit into
compute-perffrom
grid-entities

Conversation

@tychedelia

@tychedelia tychedelia commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Grids were special cased, but they can just be another entity/component. We also can now specialize them when you do compute.set("grid", grid) rather than having a separate grid binding API.

@tychedelia
tychedelia added this pull request to stack #256 September 29, 2026 04:50
@tychedelia
tychedelia removed this pull request from stack #256 September 29, 2026 05:06
@tychedelia
tychedelia added this pull request to stack #258 September 29, 2026 05:06
@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Visual regression: no changes across 43 cases

baseline f4e69a80d4 · adapter llvmpipe (LLVM 20.1.2, 256 bits) (Vulkan, Mesa 25.2.8-0ubuntu0.24.04.2 (LLVM 20.1.2))

Open the visual report · workflow run

@catilac catilac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Approving, but I do have a question about grid_count.wgsl and grid_scatter.wgsl

dims_z: u32,
_pad: u32,
}
import processing::particles::{Grid, cell_coords, cell_index};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should grid_count.wgsl and grid_scatter.wgsl also use this?

@catilac
catilac merged commit 6ac2b61 into main Oct 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants